package com.d0327.homework;

import java.util.Comparator;

public class Student1 implements Comparator<Student1> {
    private int id;
    private String name;
    private double score;
    public Student1( int ID, String name,double score) {
        this.id = ID;
        this.name = name;
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return id + " " + name + " " + score;
    }

    @Override
    public int compare(Student1 o1, Student1 o2) {
        return 0;
    }
}

